<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>UniMRCP: mpf_dtmf_generator.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">UniMRCP
   &#160;<span id="projectnumber">1.5.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_6719ab1f1f7655efc2fa43f7eb574fd1.html">libs</a></li><li class="navelem"><a class="el" href="dir_342be8fa773ff0594874056fe107febd.html">mpf</a></li><li class="navelem"><a class="el" href="dir_3c1f389eca1f441ba1c98a8d099f902a.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">mpf_dtmf_generator.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>DTMF generator.  
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &quot;apr_pools.h&quot;</code><br/>
<code>#include &quot;<a class="el" href="apt_8h_source.html">apt.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="mpf__frame_8h_source.html">mpf_frame.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="mpf__stream_8h_source.html">mpf_stream.h</a>&quot;</code><br/>
</div>
<p><a href="mpf__dtmf__generator_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a0e79d4257cd6c71a5114120fa3a83765"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="apt_8h.html#ad3d792bfc75893affad257781ea46e55">APT_BEGIN_EXTERN_C</a> <br class="typebreak"/>
enum <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a0e79d4257cd6c71a5114120fa3a83765">mpf_dtmf_generator_band_e</a></td></tr>
<tr class="separator:a0e79d4257cd6c71a5114120fa3a83765"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad49ee1e3b91d25056a481a4c8158b7c"><td class="memItemLeft" align="right" valign="top">typedef struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a></td></tr>
<tr class="separator:aad49ee1e3b91d25056a481a4c8158b7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a1e27ec53ca9b143c68db99ef9b836f2b"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a> { <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2bac64d993f9d9d3f10fbaf17a3c3fc5932">MPF_DTMF_GENERATOR_INBAND</a> = 0x1, 
<a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2baaaa8ba5a2a2df1e054fa578cbe3e1c3c">MPF_DTMF_GENERATOR_OUTBAND</a> = 0x2, 
<a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2bab31ff79c5deffd135a97b5842941bd8b">MPF_DTMF_GENERATOR_BOTH</a> = MPF_DTMF_GENERATOR_INBAND | MPF_DTMF_GENERATOR_OUTBAND
 }</td></tr>
<tr class="separator:a1e27ec53ca9b143c68db99ef9b836f2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:afb4911198add1a004bcf5e67ca02b74d"><td class="memItemLeft" align="right" valign="top">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#afb4911198add1a004bcf5e67ca02b74d">mpf_dtmf_generator_create_ex</a> (const struct <a class="el" href="structmpf__audio__stream__t.html">mpf_audio_stream_t</a> *stream, enum <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a> band, apr_uint32_t tone_ms, apr_uint32_t silence_ms, struct apr_pool_t *pool)</td></tr>
<tr class="separator:afb4911198add1a004bcf5e67ca02b74d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9590d9d5eb2efadb94718c81d6be0116"><td class="memItemLeft" align="right" valign="top"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a9590d9d5eb2efadb94718c81d6be0116">mpf_dtmf_generator_enqueue</a> (struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *generator, const char *digits)</td></tr>
<tr class="separator:a9590d9d5eb2efadb94718c81d6be0116"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae423bfd0b5292045a5155e559ebdab8b"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#ae423bfd0b5292045a5155e559ebdab8b">mpf_dtmf_generator_reset</a> (struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *generator)</td></tr>
<tr class="separator:ae423bfd0b5292045a5155e559ebdab8b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9fb2d46eafe7a03dd65aed15ae8fb2cd"><td class="memItemLeft" align="right" valign="top"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a9fb2d46eafe7a03dd65aed15ae8fb2cd">mpf_dtmf_generator_sending</a> (const struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *generator)</td></tr>
<tr class="separator:a9fb2d46eafe7a03dd65aed15ae8fb2cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6a92c3660be6fe5fb984f17ccb4ee33d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a6a92c3660be6fe5fb984f17ccb4ee33d">mpf_dtmf_generator_put_frame</a> (struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *generator, struct <a class="el" href="structmpf__frame__t.html">mpf_frame_t</a> *frame)</td></tr>
<tr class="separator:a6a92c3660be6fe5fb984f17ccb4ee33d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ad7c51b64a51a84607bd45d185c8bf2"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="mpf__dtmf__generator_8h.html#a4ad7c51b64a51a84607bd45d185c8bf2">mpf_dtmf_generator_destroy</a> (struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *generator)</td></tr>
<tr class="separator:a4ad7c51b64a51a84607bd45d185c8bf2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>DTMF generator. </p>
<p>Generator used to send DTMF tones. Capable to send digits either in-band as audible tones or out-of-band according to RFC4733. </p>
</div><h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a0e79d4257cd6c71a5114120fa3a83765"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="apt_8h.html#ad3d792bfc75893affad257781ea46e55">APT_BEGIN_EXTERN_C</a> enum <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a>  <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>DTMF generator band </p>

</div>
</div>
<a class="anchor" id="aad49ee1e3b91d25056a481a4c8158b7c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Opaque MPF DTMF generator structure definition </p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a1e27ec53ca9b143c68db99ef9b836f2b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>DTMF generator band </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a1e27ec53ca9b143c68db99ef9b836f2bac64d993f9d9d3f10fbaf17a3c3fc5932"></a>MPF_DTMF_GENERATOR_INBAND</em>&#160;</td><td class="fielddoc">
<p>Generate tones in-band </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a1e27ec53ca9b143c68db99ef9b836f2baaaa8ba5a2a2df1e054fa578cbe3e1c3c"></a>MPF_DTMF_GENERATOR_OUTBAND</em>&#160;</td><td class="fielddoc">
<p>Generate named events out-of-band </p>
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a1e27ec53ca9b143c68db99ef9b836f2bab31ff79c5deffd135a97b5842941bd8b"></a>MPF_DTMF_GENERATOR_BOTH</em>&#160;</td><td class="fielddoc">
<p>Generate both tones and named events </p>
</td></tr>
</table>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="afb4911198add1a004bcf5e67ca02b74d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a>* mpf_dtmf_generator_create_ex </td>
          <td>(</td>
          <td class="paramtype">const struct <a class="el" href="structmpf__audio__stream__t.html">mpf_audio_stream_t</a> *&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">enum <a class="el" href="mpf__dtmf__generator_8h.html#a1e27ec53ca9b143c68db99ef9b836f2b">mpf_dtmf_generator_band_e</a>&#160;</td>
          <td class="paramname"><em>band</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">apr_uint32_t&#160;</td>
          <td class="paramname"><em>tone_ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">apr_uint32_t&#160;</td>
          <td class="paramname"><em>silence_ms</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct apr_pool_t *&#160;</td>
          <td class="paramname"><em>pool</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Create MPF DTMF generator (advanced). </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>A stream to transport digits via. </td></tr>
    <tr><td class="paramname">band</td><td>MPF_DTMF_GENERATOR_INBAND or MPF_DTMF_GENERATOR_OUTBAND </td></tr>
    <tr><td class="paramname">tone_ms</td><td>Tone duration in milliseconds. </td></tr>
    <tr><td class="paramname">silence_ms</td><td>Inter-digit silence in milliseconds. </td></tr>
    <tr><td class="paramname">pool</td><td>Memory pool to allocate DTMF generator from. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object or NULL on error. </dd></dl>
<dl class="section see"><dt>See Also</dt><dd>mpf_dtmf_generator_create </dd></dl>

</div>
</div>
<a class="anchor" id="a4ad7c51b64a51a84607bd45d185c8bf2"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpf_dtmf_generator_destroy </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td>
          <td class="paramname"><em>generator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Free all resources associated with the generator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generator</td><td>The generator. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9590d9d5eb2efadb94718c81d6be0116"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mpf_dtmf_generator_enqueue </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td>
          <td class="paramname"><em>generator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>digits</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Add DTMF digits to the queue. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generator</td><td>The generator. </td></tr>
    <tr><td class="paramname">digits</td><td>DTMF character sequence [0-9*#A-D]. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if ok, FALSE if there are too many digits. </dd></dl>

</div>
</div>
<a class="anchor" id="a6a92c3660be6fe5fb984f17ccb4ee33d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mpf_dtmf_generator_put_frame </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td>
          <td class="paramname"><em>generator</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">struct <a class="el" href="structmpf__frame__t.html">mpf_frame_t</a> *&#160;</td>
          <td class="paramname"><em>frame</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Put frame into the stream. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generator</td><td>The generator. </td></tr>
    <tr><td class="paramname">frame</td><td>Frame object passed in stream_read(). </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if frame with tone (both in-band and out-of-band) was generated, FALSE otherwise. In contrast to mpf_dtmf_generator_sending, returns FALSE even if generating inter-digit silence. In other words returns TRUE iff the frame object was filled with data. This method MUST be called for each frame for proper timing. </dd></dl>

</div>
</div>
<a class="anchor" id="ae423bfd0b5292045a5155e559ebdab8b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void mpf_dtmf_generator_reset </td>
          <td>(</td>
          <td class="paramtype">struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td>
          <td class="paramname"><em>generator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Empty the queue and immediately stop generating. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generator</td><td>The generator. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a9fb2d46eafe7a03dd65aed15ae8fb2cd"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="apt_8h.html#ac7b6d8df47829d778eb598e1cc52cc2a">apt_bool_t</a> mpf_dtmf_generator_sending </td>
          <td>(</td>
          <td class="paramtype">const struct <a class="el" href="mpf__dtmf__generator_8h.html#aad49ee1e3b91d25056a481a4c8158b7c">mpf_dtmf_generator_t</a> *&#160;</td>
          <td class="paramname"><em>generator</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Check state of the generator. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">generator</td><td>The generator. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>TRUE if generating a digit or there are digits waiting in queue. FALSE if the queue is empty or generating silence after the last digit. </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Tue Aug 22 2017 10:11:48 for UniMRCP by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
